package basic.primitive;

import basic.immutable.Student;

import java.util.Objects;

/**
 * @author Cheng Jun
 * @version 1.0
 * @description 请输入描述
 * @date 2023/4/17 9:41
 */
public class LongStudy {

    public static void main(String[] args) {
        Long num1 = new Long(1L);
        Long num2 = new Long(1L);
        long num21 = new Long(1L);

        Student student = new Student();
        // System.out.println("student.getAge() +" + getAge(student));

        Long num3 = new Long(1024L);
        Long num4 = new Long(1024L);
        Long num5 = new Long(102400L);
        Long num6 = new Long(102400L);
        long num61 = 102400L;
        System.out.println(num1 == num2);
        System.out.println(num1 == num21);

        System.out.println(num3 == num4);
        System.out.println(num5 == num6);
        System.out.println(num5 == num61);

        System.out.println(Long.parseLong("20年"));
    }

    static long getAge(Student student) {
        return student.getAge();
    }
}
